﻿Imports System.Xml
Imports System.Net
Imports WindowsApplication1

Public Module Module1

    Public xml As New System.Xml.XmlDocument()

    Public Sub Main()
        Dim test As New SXMLCreator
        test.CreateXML()
        Console.ReadLine()


        'Dim root As XmlElement
        'root = xml.CreateElement("root")
        'xml.AppendChild(root)

        'Dim username As XmlElement
        'username = xml.CreateElement("username")
        'username.InnerText = "user1"
        'root.AppendChild(username)

        'Dim url = "http://mydomain.com"
        'Dim client As New WebClient

        'client.Headers.Add("Content-Type", "application/xml")
        'client.Headers.Add("Custom: API_Method")
        'Dim sentXml As Byte() = System.Text.Encoding.ASCII.GetBytes(xml.OuterXml)
        'Dim response As Byte() = client.UploadData(url, "POST", sentXml)

        'Console.WriteLine(response.ToString())
        'Console.ReadLine()

    End Sub

End Module
